export class BaseComponentConfig {
  constructor(public GetListUrl = "",
    public CreateUrl = "",
    public UpdateUrl = "",
    public GetSingle = "",
    public DeleteUrl = "",
    public KeyFieldName = "Id",
    public FormName = "",
    public ModuleCaption = "",
    public Navigation: Array<CustomNavigation> = new Array<CustomNavigation>(),
    public PKeyFieldName = "",
    public ButtonSet = { Edit: true, Dell: true }
  ) {

  }
}

export class CustomNavigation {
  constructor(public caption: string,
    public urlLink: string = '',
    public showType: ElementShowType = ElementShowType.TableOperation,
    public iconCss: string = '',
    public navigatType: NavigatType = NavigatType.Model,
    public tag: any = '',
  ) {

  }
}
/**
 * 自定义按钮显示位置`菜单栏`,`表格操作区域`
 */
export enum ElementShowType {
  MenuBar,
  TableOperation,
}
/**
 * 访问下级组件方式`路由`，`弹窗`
 */
export enum NavigatType {
  Route,
  Model,
}
